LDADD = ../litehtml/liblitehtml.la \
	../litehtml/libgumbo.la ../discount/libmarkdown.la

bin_PROGRAMS = litemdview
litemdview_CXXFLAGS = @EXTRA_CXXFLAGS@ -I../litehtml/include/ \
											-I../discount/ -I../litehtml/src/gumbo/include \
											-I../stb
litemdview_LDFLAGS = @EXTRA_LIBS@ ../discount/libmarkdown.la
litemdview_SOURCES = browser_wnd.cpp browser_wnd.h file_loader.cpp \
	file_loader.h globals.h html_widget.cpp html_widget.h main.cpp \
	web_history.h web_history.cpp html_loader.cpp html_loader.h \
	../litehtml/containers/linux/container_linux.cpp \
	../litehtml/containers/linux/container_linux.h \
	../discount/libmarkdown.la \
	../litehtml/liblitehtml.la

XXD="../xxd/xxd"

master.css.inc:
	cat ../themes/master.css | $(XXD) -i > $@
	cat ../themes/github-markdown-light.css | $(XXD) -i > github_light.css.inc
	cat ../themes/github-markdown-dark.css | $(XXD) -i > github_dark.css.inc
	cat ../themes/github-markdown-darker.css | $(XXD) -i > github_darker.css.inc
	cat ../README.md | $(XXD) -i > readme.md.inc
	cat ../markdown-cheatsheet/README.md | $(XXD) -i > cheatsheet.md.inc
	cat ../themes/gtkcssprovider.css | $(XXD) -i > gtkcssprovider.css.inc

main.cpp: master.css.inc
